package interfaces;

import net.xoetrope.xui.*;
import net.xoetrope.xui.validation.XValidator;
import net.xoetrope.swing.*;

public class UIGerirDevolucoes extends XPage
{
	public UIGerirDevolucoes()
	{
	}

	public void pageCreated(){
		setExceptionHandler(new ExceptionHandler(this));
		((XPanel)findComponent("pa_listaFacturas")).setVisible(false);


	}

	public void openAnular()
	{
		if ( wasMouseClicked() ){

		}
	}


	public void openEditar()
	{
		if ( wasMouseClicked() ){
			((XPanel)findComponent("pa_listaFacturas")).setVisible(true);
			((XPanel)findComponent("pa_principal")).setVisible(false);
		}

	}


	public void openNovo()
	{
		if ( wasMouseClicked() ){
			((XPanel)findComponent("pa_listaFacturas")).setVisible(true);
			((XPanel)findComponent("pa_principal")).setVisible(false);
		}

	}


	public void pesquisarColuna()
	{if ( wasMouseClicked() ){
		if(checkValidations()==XValidator.LEVEL_IGNORE){
			
		}

	}

	}


	public void listarTodos()
	{
		if ( wasMouseClicked() ){

		}
	}


	public void openOK()
	{
		if ( wasMouseClicked() ){
			((XPanel)findComponent("pa_listaFacturas")).setVisible(false);
			((XPanel)findComponent("pa_principal")).setVisible(true);
		}
	}


	public void openFactura()
	{
		if ( wasMouseClicked() ){
			((XPanel)findComponent("pa_listaFacturas")).setVisible(true);
			((XPanel)findComponent("pa_principal")).setVisible(false);
		}
	}

}
